package com.lanou.dormitory.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lanou.dormitory.dao.DormitoryMapper;
import com.lanou.dormitory.entity.Dormitory;

@Service
public class DormitoryServiceImpl implements DormitoryService {
	@Autowired
	private DormitoryMapper dormitoryMapper;
	
	@Override
	public List<Dormitory> getAll() {
		return dormitoryMapper.getAll();
	}
	@Override
	public void save(String dnumber, String single, String more) {
		dormitoryMapper.save(dnumber, single, more);
		
	}
}
